<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <title>login</title>
    <link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous">
    <link href="https://getbootstrap.com/docs/4.0/examples/signin/signin.css" rel="stylesheet" crossorigin="anonymous"/>
</head>
<body>
<!--th:action="@{/user/add}"-->
<form class="form-signin"  action="/user/add" method="post">
    <h2 class="form-signin-heading">请登录</h2>
    <label for="inputUsername" class="sr-only">Username</label>
    <input type="text" class="form-control" name="username" id="inputUsername" required autofocus>
    <label for="inputPassword" class="sr-only">Password</label>
    <input type="password" class="form-control" name="password" id="inputPassword" required>
    <br>
    <button type="submit" class="btn btn-lg btn-primary btn-block">Sign in</button>
</form>
</body>
</html>